package com.im.message.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.im.message.entity.Group;
import com.im.message.entity.Message;
import com.im.message.entity.User;
import lombok.Data;

import java.util.Date;

/**
 * User: key
 * ClassName:MessageVo
 * Date: 2023/7/10
 * Time: 18:22
 * description:
 */
@Data
public class MessageVo {
    private User user;
    private Group group;
    //消息ID
//    private Integer id;
    //消息创建时间
    private Date createTime;
    //消息是私聊/系统/群聊（0，1，2）
    private String type;
    //未读消息数量
    private Integer unreadCount;
    //消息内容
    private String context;
    //消息发送人的ID
    private Integer fromId;
}
